package com.lanou3g.code0408.constructor;

/**
 * Created by dllo on 18/4/8.
 */
public class Main {
    public static void main(String[] args) {
        Dog dog = new Dog("毛毛");
//        dog.setName("毛毛");
        dog.setAge(7);
        Cat cat = new Cat("毛豆");
        System.out.println(cat.getName());
        Mouse mouse = new Mouse("小米", "白色", "蓝牙");
        Mouse mouse2 = new Mouse();
        mouse2.setBrand("雷蛇");
        mouse2.setColor("白色");
        mouse2.setWay("有线");
        System.out.println(mouse.getBrand());
    }
}
